Package edu.uky.ai.lp.logic
Class Disjunction
java.lang.Object
edu.uky.ai.lp.logic.BooleanExpression
edu.uky.ai.lp.logic.NAryBooleanExpression
edu.uky.ai.lp.logic.Disjunction
- All Implemented Interfaces:
Expression,Formula
public class Disjunction extends NAryBooleanExpression
Represents an expression with 1 or more disjuncts, at least one of which
must be true.
- Author:
- Stephen G. Ware
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Disjunction(Expression... disjuncts)Constructs a new disjunction with the given arguments. -
Method Summary
Modifier and Type Method Description Disjunctionsubstitute(Unifier unifier)Return a version of this formula with its variables replaced with the values assigned to them by a unifier.java.lang.StringtoString()Methods inherited from class edu.uky.ai.lp.logic.BooleanExpression
equals, hashCode, substituteArguments, toString, unify
-
Constructor Details
-
Disjunction
Constructs a new disjunction with the given arguments.- Parameters:
disjuncts- the disjuncts
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
substitute
Description copied from interface:FormulaReturn a version of this formula with its variables replaced with the values assigned to them by a unifier.- Parameters:
unifier- the unifier- Returns:
- the formula with variables replaced
-